#ifndef PROJECTBAYADAPTER_H
#define PROJECTBAYADAPTER_H

#include <QSqlDatabase>

#include <adapterinterface.h>
#include <usecasemodel.h>

class ProjectBayAdapter : public QObject,
                          public ProjectBayAdapterPluginInterface
{
    Q_OBJECT
    Q_INTERFACES(PluginInterface ProjectBayAdapterPluginInterface)

public:
    ProjectBayAdapter();

    QString name() const;
    QString description() const;
    bool connectToDatabase();
    UseCaseModel * createModel();
    bool loadUseCase(UseCase * uc);
    bool saveUseCase(UseCase * uc);

private:
    QSqlDatabase m_database;
};

#endif // PROJECTBAYADAPTER_H
